package com.guo.pet_store.admin.service;

import com.guo.pet_store.admin.pojo.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface UserService {
     User checkUser(String username,String password);
     Page<User> listUser(Pageable pageable);
     User addUser(User user);
     User selectAUser(Long userId);
     User updateUser(User user,Long userId);
     User getUserByName(String username);
     void changMoney(Double money,Long userId);
//     判断用户名是否已经存在
     Boolean isUsed(String username);
}
